<%--
  User: Shengzhao Li
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>账务明细</title>

</head>
<body>
<%--account details page--%>
<div id="account_details_page" data-role="dialog">
    <div data-role="header" data-theme="f">
        <h1>账务明细</h1>
    </div>
    <div data-role="content">
        <div class="ui-bar-c ui-corner-top ui-corner-bottom details-area">
            <p><strong>类型:</strong>&nbsp;${account.typeName}<c:if
                    test="${not account.publicity}">
                <img src="../../../images/mobile/lock.png" alt="private"/>
                </c:if></p>

            <p><strong>金额:</strong>&nbsp;${account.amount} </p>

            <p><strong>日期:</strong>&nbsp;${account.accountDate}</p>
            <%--需要登录才显示--%>
            <c:if test="${account.login}">
                <p><strong>记录时间:</strong>&nbsp;${account.createTime}</p>

                <p><strong>最后更新时间:</strong>&nbsp;${account.lastUpdateDate}</p>

                <p><strong>创建者:</strong>&nbsp;${account.allowEdit?'本人':account.creator}</p>
            </c:if>

            <p><strong>描述:</strong>&nbsp;${account.description}</p>

        </div>
        <%--只有用户自己才显示修改--%>
        <c:if test="${account.allowEdit}">
            <a href="${contextPath}/m/account/form?guid=${account.guid}" data-ajax="false" data-role="button" data-theme="b">修改</a>
        </c:if>
        <a href="javascript:void(0);" data-role="button" data-rel="back">返回</a>
    </div>
</div>
</body>
</html>